<!DOCTYPE html>
<html lang="en" style="height: 100%;">
<head>
    <meta charset="UTF-8">
    <title>列表认养产品</title>
    <style>
        .hander_zx{font-size:18px}.conten{background:#fff;margin-top:10px}.conten ul{overflow:hidden;padding:0;margin:0;border-bottom:1px solid #e5e5e5}.conten_floet li{float:left;list-style:none;line-height:45px;text-align:center;width:100px;cursor:pointer;color:#212121;padding:0 10px;}.active{color:#14d882!important;border-bottom:3px solid #14d882}.push_fx li{float:left;font-size:14px;list-style:none;width:10%;text-align:center;background:#f8f8f8;line-height:45px;color:#1f1f1f}.lick_push li{float:left;font-size:14px;width:10%;text-align:center;line-height:45px;list-style:none;color:#616161}.lick_push li:last-child{color:#14d882!important}.lick_push li:last-child span:nth-child(1){margin-right:5px}.lick_push li:last-child span{cursor:pointer}
    </style>
    <link rel="stylesheet" href="../css/paging.css">
    <link rel="stylesheet" href="../css/finacnce.css">
</head>
<body style="height:100%;overflow-x: hidden">
<!--//hander-->
<div class="hander_zx" style="padding: 5px 0 0 10px;">财务报表</div>
<!--内容-->
<div class="conten">
    <ul class="conten_floet">
        <li class="active product">列表认养产品</li>
    </ul>
    <!--搜索拦-->
    <div class="input_corder">
        <div>
            <div class="pink_wo">
                <span>订单日期：</span>
                <div>
                    <input onclick="SetDate(this,'yyyy-MM-dd')" class="date_code" id="start_date">
                </div>
                <div>
                    <img src="../cw_img/cw_img1.png" alt="">
                </div>
            </div>
            <div class="pink_wo">
                <span>至</span>
            </div>
            <div class="pink_wo">
                <div></div>
                <div>
                    <input onclick="SetDate(this,'yyyy-MM-dd')" class="date_code" id="end_date">
                </div>
                <div>
                    <img src="../cw_img/cw_img1.png" alt="">
                </div>
            </div>
        </div>
        <div style="margin-left: 20px;">
            <div class="pink_wo">
                <span>选择类型：</span>
                <div class="get_type">
                    认养人
                </div>
                <div>
                    <img src="../cw_img/cw_img2.png" alt="" class="wp_img_ws">
                </div>
            </div>
            <div class="pink_wo" style="margin-left: 15px;">
                <div></div>
                <div>
                    <input type="text" style="width: 100%;height:100%;border:none;text-align: center" id="ryr_name">
                </div>
                <div>
                    <img src="../cw_img/cw_img3.png" alt="" style="width: 15px;">
                </div>
            </div>
        </div>
    </div>
    <div style="padding-bottom: 10px;" class="input_corder">
        <div>
            <div class="pink_wo">
                <span>订单状态：</span>
                <div style="width: 139px;">
                    <select class="SelectList">
                        <option value="1">全部</option>
                        <option value="2">等待收益</option>
                        <option value="3">收益中</option>
                        <option value="4">已结息</option>
                    </select>
                </div>
            </div>
            <button class="dc_btn" id="query_up">查询</button>
            <button class="dc_btn" id="export_up" style="margin-left: 15px;">导出</button>
        </div>
    </div>
    <!--//数据接口列表-->
    <div class="tab_wont">
        <ul style="background: #F8F8F8">
            <li>订单日期</li>
            <li>期数</li>
            <li>认养人</li>
            <li style="width: 6%;">认养数量</li>
            <li>单位</li>
            <li>认养周期</li>
            <li>年化率</li>
            <li>认养资金</li>
            <li>认养收益</li>
            <li style="width: 8.5%">认养日</li>
            <li style="width: 8.5%">收益日</li>
            <li>订单状态</li>
            <li>付款方式</li>
            <li>操作</li>
        </ul>
        <div class="bg_data">
        </div>
    </div>
    <!--//分页div-->
    <div class="box" id="box" style="display:block;"></div>
</div>
</body>
<script src="https://cdn.bootcss.com/jquery/2.1.1-rc2/jquery.min.js"></script>
<script src="../js/data.js"></script>
<script src="../js/paging.min.js"></script>
<script>
    "use strict";$(function(){var state_a;var state_b;var time_date;var end_date;var _name;$("#query_up").on('click',function(){state_b=$(".SelectList").val();typeof state_b=="string"&&state_b=="1"?state_a=null:state_a=state_b;time_date=$("#start_date").val();typeof time_date=="string"&&time_date==""?time_date=null:time_date;end_date=$("#end_date").val();typeof end_date=="string"&&end_date==""?end_date=null:end_date;_name=$("#ryr_name").val();typeof _name=="string"&&_name==""?_name=null:_name;data(state_a,time_date,end_date,_name)});function data(a,b,c,d){$.ajax({type:'post',url:'/getInvestOrders',dataType:'json',contentType:"application/json",data:JSON.stringify({currentPage:1,pageCount:24,state:a,startTime:b,endTime:c,keyword:d}),success:function success(data){paging_up(data.totalCount,a,b,c,d)}})}data(null,null,null,null);function paging_up(e,a,b,c,d){if(typeof e==='number'&&e>0){$("#box").css("display","block")}else{$("#box").css("display","none")}var total=Math.ceil(e/24);$('#box').paging({initPageNo:1,totalPages:total,totalCount:'合计'+e+'条数据',slideSpeed:600,jump:true,callback:function callback(page){$.ajax({type:'post',url:'/getInvestOrders',dataType:'json',contentType:"application/json",data:JSON.stringify({currentPage:page,pageCount:24,state:a,startTime:b,endTime:c,keyword:d}),success:function success(data){var info=data.rows;var html="";for(var i=0;i<info.length;i++){html+="\n                                    <ul>\n                                        <li>"+info[i].order_time+"</li>\n                                        <li>"+(info[i].code_p+"期数")+"</li>\n                                        <li>"+info[i].username+"</li>\n                                        <li style=\"width: 5%;\">"+info[i].amount+"</li>\n                                        <li>"+info[i].unit+"/"+info[i].type+"</li>\n                                        <li>"+info[i].time_limit+"\u4E2A\u6708</li>\n                                        <li>"+info[i].return_rate+"%</li>\n                                        <li>"+info[i].order_money+"</li>\n                                        <li>"+info[i].income+"</li>\n                                        <li style=\"width: 9%;\">"+info[i].start_time+"</li>\n                                        <li style=\"width: 9%;\">"+info[i].end_time+"</li>\n                                        <li>"+(info[i].state==2?"待收益":info[i].state==3?"收益中":"已结息")+"</li>\n                                        <li>"+(info[i].paytype==null?"/":info[i].paytype)+"</li>\n                                        <li class=\"finance_code\" data_code=\""+info[i].code+"\">\u67E5\u770B</li>\n                                    </ul>\n                                "}$(".bg_data").html(html)}})}})}$("#export_up").on('click',function(){window.open("http://wx.umubao.com/expwithdraw")});$(".bg_data").on('click','.finance_code',function(){var code_html="";var bottom_left_html="";var bottom_right_html="";$.ajax({type:'post',url:'/getInOrderDetail',dataType:'json',contentType:"application/json",data:JSON.stringify({code:$(this).attr("data_code")}),success:function success(data){var object_data=data.rows;code_html+="\n                        <li>\u8BA2\u5355\u65E5\u671F : "+object_data.order_time+"</li>\n                        <li>\u8BA2\u5355\u53F7 : "+object_data.code+"</li>\n                        <li>\u5408\u540C\u7F16\u53F7 : "+object_data.htcode+"</li>\n                        <li>\u671F\u6570 : "+object_data.code_p+"\u671F</li>\n                        <li>\u8BA4\u517B\u4EBA : "+object_data.username+"</li>\n                        <li>\u8BA4\u517B\u6570\u91CF : "+object_data.amount+"</li>\n                        <li>\u5355\u4F4D : "+object_data.type+"/"+object_data.unit+"</li>\n                        <li>\u8BA4\u517B\u5468\u671F : "+object_data.time_limit+"\u4E2A\u6708</li>\n                        <li>\u5E74\u5316\u7387 : "+object_data.return_rate+"%</li>\n                        <li>\u8BA4\u517B\u8D44\u91D1 : "+object_data.order_money+"</li>\n                        <li>\u6536\u76CA\u91D1\u989D : "+object_data.income+"</li>\n                        <li>\u8BA4\u517B\u65E5 : "+object_data.start_time+"</li>\n                        <li>\u6536\u76CA\u65E5 : "+object_data.end_time+"</li>\n                        <li>\u652F\u4ED8\u65B9\u5F0F : "+(object_data.paytype==null?"/":object_data.paytype=="sinaPay"?"新浪支付":"微信支付")+"</li>\n                        <li>\u4EA4\u6613\u6D41\u6C34\u53F7 : "+object_data.code+"</li>\n                    ";bottom_left_html+="\n                        <li>\u6CE8\u518C\u65E5\u671F : "+object_data.regtime+"</li>\n                        <li>\u59D3\u540D : "+object_data.username+"</li>\n                        <li>\u8EAB\u4EFD\u8BC1\u53F7 : "+object_data.idcard+"</li>\n                        <li>\u6CE8\u518C\u7535\u8BDD : "+object_data.phone+"</li>\n                    ";bottom_right_html+="\n                        <li>\u6211\u7684\u8D44\u4EA7 : "+object_data.total_money+"( \u8BA4\u517B\u8D44\u91D1+\u8BA4\u517B\u6536\u76CA\uFF0D\u5DF2\u6D88\u8D39 )</li>\n                        <li>\u8BA4\u517B\u725B : "+object_data.niunum+"\u5934</li>\n                        <li>\u8BA4\u517B\u7F8A : "+object_data.yangnum+"\u53EA</li>\n                        <li>\u5DF2\u6D88\u8D39( \u5546\u54C1\u8D2D\u4E70 ) : "+object_data.cost+"</li>\n                        <li>\u5B58\u94B1\u7F50( \u5B58\u94B1\u7F50 ) : "+object_data.sina_money+"</li>\n                        <li>\u9500\u552E\u5956\u91D1( \u4F59\u989D ) : "+object_data.saleward+"</li>\n                        <li>\u63A8\u5E7F\u5956\u91D1( \u4F59\u989D ) : "+object_data.popularize+"</li>\n                        <li>\u5DF2\u4F53\u73B0\u5956\u91D1 : "+object_data.withdrawWard+"</li>\n                    ";$('.ul_mip',window.parent.document).html(code_html);$('.left_bottom_wp',window.parent.document).html(bottom_left_html);$('.right_bottom_wp',window.parent.document).html(bottom_right_html)}});$('#_selef',window.parent.document).css("display","block")})});
</script>
</html>